<?php 
require_once( 'Base/CBaseFaq.class.php');
class CFaq extends CBaseFaq {
		
	public function __construct() {
		parent::__construct();
		return true;
	}	
	
	public function deleteFaqsByIds( $arrintFaqIds, $objDatabase ) {
	
		$strSql = ' DELETE FROM `faqs` WHERE `id` IN(' . implode( ',', $arrintFaqIds ) . ')';
		return parent::deleteRecord( $strSql, $objDatabase );
	}
	
	public function updateFaqsActionByIds( $strAction, $arrintFaqIds, $objDatabase ) {
	
		$strSql = 'UPDATE
						`faqs`
	
					SET
						`is_active` = ' . $strAction . '
					WHERE
						`id` IN(' . implode( ',', $arrintFaqIds ) . ')';
	
		return parent::updateRecord( $strSql, $objDatabase );
	}

}

?>